﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IFactory.cs" company="">
//   
// </copyright>
// <summary>
//   The Factory interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.Components
{
    /// <summary>
    ///   The Factory interface.
    /// </summary>
    public interface IFactory
    {
        #region Public Methods and Operators

        /// <summary>
        ///   The create.
        /// </summary>
        /// <returns> The <see cref="object" /> . </returns>
        object Create();

        #endregion
    }

    /// <summary>
    /// The Factory interface.
    /// </summary>
    /// <typeparam name="T">
    /// </typeparam>
    public interface IFactory<T> : IFactory
    {
        #region Public Methods and Operators

        /// <summary>
        ///   The create.
        /// </summary>
        /// <returns> The <see cref="T" /> . </returns>
        T Create();

        #endregion
    }
}